package com.spring.test.dao.Impl;

import com.spring.test.dao.PersonDao;

/**
 * @author ChaunceyZhang
 * @date 2022-10-15 20:59
 * @blog1 https://zephyr-cyber.github.io/
 * @blog2 https://www.yuque.com/gougougou-xwscx
 */
public class PersonDaoImpl implements PersonDao {
        private String name;

        private String context;

        public String getName() {
            return name;
        }
        public PersonDaoImpl(String name, String context) {
            this.name = name;
            this.context = context;
        }
        public String getContext() {
            return context;
        }
        @Override
        public void say() {
            System.out.println(name + " " + context);
        }
    }

